<template>
  <div class="sys_home">
    <HeaderBanner class="header" />
    <div class="home_body">
      <NavMenu class="nav_menu" />
      <div class="container">
        <div class="content">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import HeaderBanner from "./components/HeaderBanner.vue";
import NavMenu from "./components/NavMenu.vue";
export default {
  name: "SystemHome",
  components: {
    HeaderBanner,
    NavMenu,
  },
};
</script>

<style scoped lang="scss">
.sys_home {
  width: 100%;
  height: 100%;
  .header {
    width: 100%;
    height: 60px;
  }
  .home_body {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    .nav_menu {
      max-width: 200px;
      height: 100%;
    }
    .container {
      height: 100%;
      flex: 1;
      background-color: #f0f2f5;
      box-sizing: border-box;
      padding: 15px;
      .content {
        width: 100%;
        height: 100%;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        padding: 15px;
      }
    }
  }
}
</style>
